#########################################################################
# File Name: go.sh
# Author: asia.rabbit
# mail: asia.rabbit@163.com
# Created Time: Sun 04 Feb 2024 05:52:43 PM CST
#########################################################################
#!/bin/bash

path=../data/dec2023
exe=./ana
uid=0

# C TA
# TOTAL EVENTS: 183w
# 39w
$exe $path/20231231_0319.dat $path/20231230.014 $path/f1/20231231_0319.dat -u$uid
# 39w
$exe $path/20231231_0136.dat $path/20231230.013 $path/f1/20231231_0135.dat -u$uid
# 30w dc0-2 HV: 820V
$exe $path/20231231_0005.dat $path/20231230.010 $path/f1/20231231_0004.dat -u$uid
# 5w dc0-2 HV: 900V
$exe $path/20231230_2339.dat $path/20231230.008 $path/f1/20231230_2338.dat -u$uid
# 20w dc0-2 HV: 800V
$exe $path/20231230_1559.dat $path/20231230.006 $path/f1/20231230_1558.dat -u$uid
# 50w
$exe $path/20231230_1353.dat $path/20231230.005 $path/f1/20231230_1350.dat -u$uid

hadd -f c.root 20231231_0319.dat_$uid.root 20231231_0136.dat_$uid.root \
  20231231_0005.dat_$uid.root 20231230_2339.dat_$uid.root \
  20231230_1559.dat_$uid.root 20231230_1353.dat_$uid.root
